package com.haizhi.vp.mapper;

import com.haizhi.vp.entity.OnlineInspectionInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * <p>
 * 在线检测 Mapper 接口
 * </p>
 *
 * @author fc
 * @since 2022-10-15
 */
@Mapper
public interface OnlineInspectionInfoMapper extends BaseMapper<OnlineInspectionInfo> {

    @Select("SELECT SUM(visual_oline) as visual_oline,SUM(visual_count) as visual_count,SUM(ice_oline) as ice_oline,SUM(ice_count) as \n" +
            "ice_count,SUM(factory_oline) as factory_oline,SUM(factory_count) as factory_count FROM `online_inspection_info` where create_date =#{date}")
    Map<String,Double> getCount(String date);
}
